package main

import (
	"fmt"
	"math/rand"
	"os"
	"time"
)

func init() {
	rand.Seed(time.Now().UnixNano())
	assert(os.MkdirAll(LibDir, 0755))
}

func main() {
	if len(os.Args) > 1 {
		switch os.Args[1] {
		case "run":
			mainRun()
		case "exec":
			mainExec()

		case "_run":
			doRun()
		case "_exec":
			doExec()
		default:
			fmt.Println("usage: ltc run|exec")
		}
		return
	}
	fmt.Println("usage: ltc run|exec")
}
